window.onload = function() {
	var APP_ID = 'c4w6bVvWfh8xxcmkBE1G0gIt-gzGzoHsz';
	var APP_KEY = 'JBikg4Ksk76zcTi5BKYWvTJF';
	AV.init({
		appId: APP_ID,
		appKey: APP_KEY
	});
	var currentUser = AV.User.current();
	if(currentUser) {
		newvue.state = true
		newvue.name = currentUser.attributes.username
		newvue.id = currentUser.id
			//		console.log(currentUser.attributes.username)
			//		console.log(currentUser.id)
	} else {
		newvue.state = false
	}
}
var newvue = new Vue({
	el: "body",
	data: {
		state: "",
		name: "",
		id: "",
		shows: false,
		isa: false,
		isb: false
	},
	methods: {
		back: function() {
			window.history.back()
		},
		tui: function() {
			AV.User.logOut();
			location.href = "../index.html"
		},
		order: function() {
			location.href = "../index.order/index.order.html"
		},
		clik: function() {
			this.isa = true;
			this.isb = false;
			this.shows = true;
		},
		cliks: function() {
			this.isa = false;
			this.isb = true;
			//			this.shows=false;
		}
	}
})